package com.imti.retrofitweatherdemo.net.news;

import com.imti.retrofitweatherdemo.logic.NewsData;
import com.imti.retrofitweatherdemo.logic.NewsDetailData;
import retrofit2.Response;
import retrofit2.http.GET;
import retrofit2.http.Query;
import rx.Observable;

public interface NewsRequest
{

    //toutiao/index?type=top&key=APPKEY

    @GET("/toutiao/index?")
    Observable<NewsData> requestNewsList(@Query("type") String top, @Query("key") String key,
        @Query("page") String page, @Query("page_size") String page_size,
        @Query("is_filter") String is_filter);

    @GET("toutiao/content?key=30fe1144633e711b45876919ed280d37")
    Observable<NewsDetailData> requestNewsDetail(@Query("uniquekey") String uniquekey);
}
